package com.example.yunJie.digitalSentry.service;



import com.example.yunJie.digitalSentry.entity.SchedulingEntity;

import java.io.Serializable;
import java.util.List;

public interface SchedulingService {
    int insert(SchedulingEntity schedulingEntity);


    int update(SchedulingEntity schedulingEntity);


    int deleteById(Serializable id);


    int deleteIdList(Long[] idList);


    SchedulingEntity findId(Serializable id);

    SchedulingEntity findByPersonalIdAndShiftId(SchedulingEntity schedulingEntity);

    List<SchedulingEntity> findAll(SchedulingEntity schedulingEntity);

    SchedulingEntity findByPersonalId(String id);

    //根据市场名称和岗位名称查找班次列表
    List<SchedulingEntity> findAllByMarketNameAndPostName(String marketName, String postName);

    //根据市场名称查找所有班次
    List<SchedulingEntity> findAllByMarketName(String marketName);

    //根据市场名，岗位名，班次名查找班次列表
    List<SchedulingEntity> findAllByMarketNameAndPostNameAndShiftName(String marketName,String postName,String shiftName);

    //根据班次名查找班次
    SchedulingEntity findAllByShiftName(String shiftName);
}
